﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace INSTA.Concepts.Constructors
{
    public class Person
    {

        //public Person() : this(string.Empty, string.Empty, 0)
        //{}

        public Person(string firstName) 
            : this(firstName, string.Empty, 0)
        {}

            
        public Person(string firstName, string lastName) 
            : this(firstName, lastName, 0) 
        {}

        
        public Person(string firstName, string lastName, int yearOfBirth)
        {
            FirstName   = firstName;
            LastName    = lastName;
            YearOfBirth = yearOfBirth;
        }









        /// <summary>
        /// Gets or sets the first name.
        /// </summary>
        public string FirstName     { get; set; }

        /// <summary>
        /// Gets or sets the last name.
        /// </summary>
        public string LastName      { get; set; }

        /// <summary>
        /// Gets or sets the year of birth.
        /// </summary>
        public int YearOfBirth      { get; set; }

        /// <summary>
        /// Gets the age.
        /// </summary>
        public int Age              { get; private set; }


    }
}
